package com.situ.mall.product.service;

import com.situ.mall.pojo.VO.IdVO;
import com.situ.mall.pojo.entity.product.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.situ.mall.product.pojo.query.ProductQuery;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品 服务类
 * </p>
 *
 * @author CKX
 * @since 2024-10-10
 */
public interface IProductService extends IService<Product> {

    Map<String, Object> selectByPage(ProductQuery productQuery);

    List<Product> selectPromoProduct(String categoryName);

    Product selectById(Integer id);

    void update(Product product);

    List<Product> getHotProduct(String categoryName);

    List<IdVO> selectIds();
}
